package com.shinewind.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "Cart实体类")
public class Cart implements Serializable {
  @TableId(type = IdType.ASSIGN_UUID)
  @ApiModelProperty(value = "购物车商品id")
  private String cId;
  @ApiModelProperty(value = "购物车商品名称")
  private String name;
  @ApiModelProperty(value = "购物车商品信息")
  private String info;
  @ApiModelProperty(value = "购物车商品单价")
  private Double sPrice;
  @ApiModelProperty(value = "购物车商品数量")
  private Integer amount;
  @ApiModelProperty(value = "购物车商品图片路径")
  private String src;
  @ApiModelProperty(value = "商品的加购时间")
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Date createTime;
  @ApiModelProperty(value = "添加商品的用户id")
  private String uId;
  @ApiModelProperty(value = "模型id")
  private String mId;
}
